﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Info.aspx.cs" Inherits="NoteSystem.Info" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script>
        function checkPwd() {
            var pwd = document.getElementById("txtPwd");
            var rpwd = document.getElementById("txtRPwd");
            if (pwd.value != rpwd.value) {
                alert('密码不一致，请修改！')
                return false;
            }
        }
    </script>
    <style type="text/css">
        .text-style1 {
            margin-left:100px;
		    margin-top:10px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div class="box_right col-lg-9 ">
       	<div class="segment left">
  		    <i class=" glyphicon glyphicon-edit left" ></i>
  			<h3 class="left">
    			个人资料修改<br>
    			<span>管理这个设备及其传感器</span>
  			</h3>			
		</div>
       		
        <div class="clear"></div>
            
                    
       <!--修改个人资料-->
       <div id="reg_box" class="left" style="padding-left:30px; padding-top:10px;">
		<div method="post" action="/" role="form" autocomplete="on">
         <div class="my-group">
			<span class="left" >姓名</span>
              <asp:TextBox ID="txtAccount" CssClass="form-control put1" runat="server" onblur="ajaxSend()" placeholder="请输入用户名"  maxlength="14" required></asp:TextBox>
		</div>
        
           <div class="my-group">
			<span class="left" >头像</span>
			<asp:FileUpload ID="fulImg" runat="server" CssClass="text-style1" /><asp:Image ID="Image1" runat="server" Height="85px" Width="99px" CssClass="text-style1" />
               <asp:Button ID="Button1" runat="server" Text="上传" OnClick="Button1_Click" />
		</div>
        
        <div class="my-group">
			<span class="left" >生日</span>
			<asp:TextBox ID="txtBirthday" CssClass="form-control put1" runat="server" placeholder="请输入出生日期"  maxlength="14" required TextMode="Date"></asp:TextBox>
		</div>
        
        <div class="my-group">
			<span class="left" >密码</span>
			<asp:TextBox ID="txtPwd" CssClass="form-control put1" runat="server" placeholder="请输入密码"  maxlength="14" required></asp:TextBox>
		</div>
        
        <div class="my-group">
			<span class="left" >重复密码</span>
			<asp:TextBox ID="txtRPwd" CssClass="form-control put1" runat="server" onblur="checkPwd()"  placeholder="请重新输入密码"  maxlength="14" required></asp:TextBox>
		</div>
        
        <div class="my-group">
			<span class="left" >性别</span>
			<asp:RadioButtonList ID="rblGender" CssClass="form-control put1" runat="server" RepeatDirection="Horizontal">
				<asp:ListItem Value="0">男</asp:ListItem>
				<asp:ListItem Value="1">女</asp:ListItem>
			</asp:RadioButtonList>
		</div>
          <div class="my-group">
			<span class="left" >所在城市</span>
               <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged" >
			  </asp:DropDownList>
			  <asp:DropDownList ID="ddlCity" Width="140px" Height="35px"  runat="server">
			  </asp:DropDownList>
              <style>
			    #ContentPlaceHolder2_ddlProvince{
					margin-left:55px;
					margin-top:10px;
                    width:140px;
                    height:35px;
			    }
            </style>

		</div>    
         <div class="my-group">
			<span class="left" >电话</span>
			 <asp:TextBox ID="txtPhone" CssClass="form-control put1" runat="server" placeholder="请输入电话"  maxlength="11" required></asp:TextBox>

		</div>   
         <div class="my-group">
			<span class="left" >邮箱</span>
			  <asp:TextBox ID="txtEmail" CssClass="form-control put1" runat="server" placeholder="请输入邮箱" required></asp:TextBox>
		</div>
         <div class="my-group">
			<span class="left" >QQ</span>
			  <asp:TextBox ID="txtQQ" CssClass="form-control put1" runat="server" placeholder="请输入QQ"  maxlength="12" required></asp:TextBox>
		</div>
        
        <div class="form-actions">
			<asp:Button ID="btnCommit" runat="server" CssClass="btn-primary btn" Text="确认修改" OnClick="btnCommit_Click" />
				
                <span class="glyphicon glyphicon-chevron-right"></span>
				</div>  
        </div>
		
	</div>
       
       

       
       </div> 
</asp:Content>
